﻿using Shop.Model.Advert;
using Shop.Model.DB;
using Shop.RemoteModel.Advert.Model;
using WeDonekRpc.Model;

namespace Shop.Collect
{
    public interface IAdvertCollect
    {
        void Delete (DBAdvert advert);
        long Add (AdvertAddArg add);
        bool Set (DBAdvert advert, AdvertSetArg arg);
        void Enable (DBAdvert advert);
        DBAdvert Get (long id);
        Result[] Query<Result> (AdvertQueryParam query, IBasicPage paging, out int count) where Result : class;
        void Stop (DBAdvert advert);

        bool CheckIsNull (long placeId);
        Dictionary<long, int> GetAdvertNum (long[] placeId);
        void End (DBAdvert advert);
    }
}